package com.ruoyi.project.orderSystem.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 工单任务对象 work_task
 * 
 * @author wangshuo
 * @date 2021-01-25
 */
public class WorkTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 任务内容 */
    @Excel(name = "任务内容")
    private String taskName;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskSn;

    /** 任务周期:1.小时，2日，3周，4月 */
    @Excel(name = "任务周期:1.小时，2日，3周，4月")
    private Integer taskCycle;

    /** 周期数 */
    @Excel(name = "周期数")
    private Integer cycleNum;

    /** 是否暂停:0否，1是 */
    @Excel(name = "是否暂停:0否，1是")
    private Integer isStop;

    /** 工单类型 */
    @Excel(name = "工单类型")
    private Integer orderType;

    /** 任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtStart;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtEnd;

    /** 执行人id集合 */
    @Excel(name = "执行人id集合")
    private String executorIds;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 修改人 */
    @Excel(name = "修改人")
    private Long modifier;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModify;

    /** 站点id */
    private Long[] stationIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskSn(String taskSn) 
    {
        this.taskSn = taskSn;
    }

    public String getTaskSn() 
    {
        return taskSn;
    }
    public void setTaskCycle(Integer taskCycle) 
    {
        this.taskCycle = taskCycle;
    }

    public Integer getTaskCycle() 
    {
        return taskCycle;
    }
    public void setCycleNum(Integer cycleNum) 
    {
        this.cycleNum = cycleNum;
    }

    public Integer getCycleNum() 
    {
        return cycleNum;
    }
    public void setIsStop(Integer isStop) 
    {
        this.isStop = isStop;
    }

    public Integer getIsStop() 
    {
        return isStop;
    }
    public void setOrderType(Integer orderType) 
    {
        this.orderType = orderType;
    }

    public Integer getOrderType() 
    {
        return orderType;
    }
    public void setGmtStart(Date gmtStart) 
    {
        this.gmtStart = gmtStart;
    }

    public Date getGmtStart() 
    {
        return gmtStart;
    }
    public void setGmtEnd(Date gmtEnd) 
    {
        this.gmtEnd = gmtEnd;
    }

    public Date getGmtEnd() 
    {
        return gmtEnd;
    }
    public void setExecutorIds(String executorIds) 
    {
        this.executorIds = executorIds;
    }

    public String getExecutorIds() 
    {
        return executorIds;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setModifier(Long modifier) 
    {
        this.modifier = modifier;
    }

    public Long getModifier() 
    {
        return modifier;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(Date gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() 
    {
        return gmtModify;
    }

    public Long[] getStationIds() {
        return stationIds;
    }

    public void setStationIds(Long[] stationIds) {
        this.stationIds = stationIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskName", getTaskName())
            .append("taskSn", getTaskSn())
            .append("remark", getRemark())
            .append("taskCycle", getTaskCycle())
            .append("cycleNum", getCycleNum())
            .append("isStop", getIsStop())
            .append("orderType", getOrderType())
            .append("gmtStart", getGmtStart())
            .append("gmtEnd", getGmtEnd())
            .append("executorIds", getExecutorIds())
            .append("creator", getCreator())
            .append("modifier", getModifier())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModify", getGmtModify())
            .toString();
    }
}
